"buffer~ cannot open parser for this file" error

Jun Yamamoto's icon

Hello,

I was learning Max by following "dearjohnreed"s Tutorials and went well until Tutorial #21.

During the Tutorial #22, I encountered the captioned, stubborn error. It appears when I toggled off the X button.


Any reason for this error or any solution for it? I tried to write full path after "open" but I could not write the character "\" in the Message box. The behavior of the text is strange.

Any inputs will be much appreciated.

Windows 7, Max 8

Sincerely,

Jun Yamamoto

Source Audio's icon

You have to insert some delay between sfrecord~ stop, and replace message to buffer.

Jun Yamamoto's icon

Thank you for the advice.

I did. But, anything I missed?

Sincerely,

Jun

Source Audio's icon

I thought that wave file would not be finalised the
moment You try to load it into buffer.
sfrecord~ needs to finalise audio file when it stops recording.
To check that, record same file manually, I mean start and end recording
by hand.
Then try to load it into buffer.

Jun Yamamoto's icon

Thank you again.

I tried.

This is the result. I first deleted snd-1.wav, then,

1. Bang "open snd-1.wav"
2. Bang "1" to sfrecord~
3. then Bang "0" to sfrecord~

So far nothing happened. Then,
4. Bang "replace snd-1.wav"

Then, the program returned "buffer~ cannot open parser for this file" error.
I opened the "snd-1.wav" by Wavepad and found it recorded the sound I made
between 2. and 3. correctly. But the buffer does not seem including any sound.

Sincerely,

Jun

Source Audio's icon

In that case something else is a problem.
I would start from the beginning,
without opening any examples or similar.
Create a buffer object, give it a name length and number of channels.
Try to load some sound files into it using only replace message,
so that Open Dialog pops up.
Try sounds from different locations then where Your recorded file is.
Check also DSP settings.
Also make sure that file path does not have any
slashes or colons in it ( ; : /) will break the file path.

I don't know what else to suggest...

Jun Yamamoto's icon

Thank you much.

I am to change my PC soon, so that I will try this on the new machine as it seems not from my small mistake.

Sincerely,

Jun Yamamoto